<?php
// +----------------------------------------------------------------------
// | ManniuCMS
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://manniuyun.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: heitao <cms@manniuyun.com>
// +----------------------------------------------------------------------

namespace app\mall\validate;

use think\Validate;

class Linkage extends Validate{

    protected $rule = [
        'name'    => ['require','token'],
        'mark'    => ['require','alphaDash']
    ];

    protected $message  = [
        'name.require' 		=> '菜单名称必填',

        'mark.require' 		=> '唯一标识必填',
        'mark.alphaDash' 	=> '唯一标识只能是由字母和数字，下划线“_”及破折号“-”'
    ];
}